package com.meitianhui.convenitenbuy.module.store.model;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.HashMap;
import java.util.List;

/**
 * Created by Administrator on 2017/11/23.
 */

public class StoreDetailMultiItemType implements MultiItemEntity {
    public static final int ITEM_BANNER = 0;     //banner
    public static final int ITEM_COUNT = 1;     //COUNT
    public static final int ITEM_SERVICE = 2;  //服务
    public static final int ITEM_TYPE = 3;  //类型
    public static final int ITEM_GOOD = 4; //商品
    public static final int ITEM_NO_DATA = 5; //没有数据
    public int Type;
    public HashMap<String, String> mUrlMap;
    //顶部的
    public List<String> mBannerData;
    public String mStoreAddress;
    public List<StoreType> mStoreTypeList;
    public String mDesc;
    //count
    public String mGroupSale;
    public String mFavorablePrice;
    public String mOneLottery;

    //type
    public String mPrice;
    public String mRange;
    public String mTime;
    public List<String> mTypeList;

    //good
    public StoreSelectedGood mStoreSelectedGood;


    public StoreDetailMultiItemType(int type, List<String> data) {
        Type = type;
        mBannerData = data;
    }
    public StoreDetailMultiItemType(int type,String groupSale,String favorablePrice,String oneLottery) {
        Type = type;
        mGroupSale = groupSale;
        mFavorablePrice = favorablePrice;
        mOneLottery = oneLottery;

    }
    public StoreDetailMultiItemType(int type, List<StoreType> storeTypeList,String storeAddress,String desc) {
        Type = type;
        mStoreAddress = storeAddress;
        mDesc = desc;
        mStoreTypeList = storeTypeList;
    }

    public StoreDetailMultiItemType(int type, List<String> typeList,String price,String range,String time) {
        Type = type;
        mTypeList = typeList;
        mPrice = price;
        mRange = range;
        mTime = time;
    }
    public StoreDetailMultiItemType(int type,StoreSelectedGood data) {
        Type = type;
        mStoreSelectedGood = data;
    }
    public StoreDetailMultiItemType(int type) {
        Type = type;
    }
    @Override
    public int getItemType() {
        return Type;
    }
}